

TEST_DIR=`pwd`
TARMAC_FILE=v8_fm_master.tarmac

TEST_ELF="$TEST_DIR/_build/test.elf._aem"
MODEL_PATH="/NFS/ARM"
MODEL_PATH="/ENV/CAD/softwarev8/ARM"

source /ENV/CAD/bashrc/ds5.bashrc

TRACE_PLUGIN="$MODEL_PATH/FastModelsPortfolio_10.1/plugins/Linux64_GCC-4.8/TarmacTraceV8.so"
SVE_PLUGIN="$MODEL_PATH/DS-5_for_SVE_v5.25/sw/models/bin/ScalableVectorExtension.so"
MODEL_NAME="$MODEL_PATH/DS-5_for_SVE_v5.25/sw/models/bin/FVP_Base_AEMv8A-AEMv8A"

# TEST_ELF="/home/slp/tmp/com_elf/v8mem_vz_permissions_check_4k_s111_r390__0_0.out.ELF"
[ -e $TARMAC_FILE ] && rm $TARMAC_FILE

$MODEL_NAME -a cluster0\*.cpu\*="$TEST_ELF" \
--plugin "$TRACE_PLUGIN" \
-C TRACE.TarmacTraceV8.trace-file=$TARMAC_FILE \
-C bp.secure_memory=false \
-C cluster0.NUM_CORES=0x1 \
--plugin "$SVE_PLUGIN" \
-C SVE.ScalableVectorExtension.enable_at_reset=1 

